#include <stdio.h>    
int cnt[1005], flag[10005];    
    
int main() {    
    int n, m, x = 0, cntt;    
    scanf("%d%d", &n, &m);    
    for (int i = 0; i < n; i++) {    
        scanf("%d", &cnt[i]);    
    }    
    
    for (int i = 0; i < n; i++) {    
        cntt = 1;    
        if (flag[cnt[i]] == 1)    
            continue;    
        flag[cnt[i]]++;    
        for (int j = i + 1; j < n; j++) {    
            if (cnt[i] == cnt[j])    
                cntt++;    
        }    
        if (cntt > m){    
            printf("%d\n", cnt[i]);    
            x = 1;    
        }    
                
    }    
    if (x == 0)    
        printf("No such element.\n");    
    return 0;    
}  